<?php global $CFG;?>
<div id="wpcontent">
<div id="wpbody-content" aria-label="Main content" tabindex="0">
<div class="wrap">
<div id="icon-edit" class="icon32 icon32-posts-post"><br></div><h2>Edit Category</h2>
<div id="ajax-response"></div>
<form name="edittag" id="edittag" method="post" action="<?echo $CFG->config['base_url']?>category/admin" class="validate">
<table class="form-table">
		<tbody>
		<tr class="form-field form-required">
			<th scope="row" valign="top"><label for="name">Active</label></th>
			<td><input name="active" id="active" value="<?php echo $category->active?>" size="40" aria-required="true" type="checkbox" <?php echo $category->active?'checked':''?>/>
			</td>
		</tr>
		<tr class="form-field form-required">
			<th scope="row" valign="top"><label for="name">Name</label></th>
			<td><input id="tag-name" name="name" value="<?php echo $category->name?>" size="40" aria-required="true" type="text"/>
			<p class="description">The name is how it appears on your site.</p></td>
		</tr>
		<tr class="form-field">
			<th scope="row" valign="top"><label for="slug">Slug</label></th>
			<td><input id="tag-slug" name="slug" value="<?php echo $category->slug?>" size="40" type="text"/>
			<p class="description">The "slug" is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.</p></td>
		</tr>
		<tr class="form-field">
			<th scope="row" valign="top"><label for="slug">Keywords</label></th>
			<td><input id="keywords" name="keywords" value="<?php echo $category->keywords?>" size="40" type="text"/>
			<p class="description">separated by , </p></td>
		</tr>
		<tr class="form-field">
			<th scope="row" valign="top"><label for="parent">Parent</label></th>
			<td>
				<select name="parent" id="parent" class="postform">
					<option value="0">None</option>
					<?php echo $option_category?>
				</select>
								<p class="description">Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.</p>
							</td>
		</tr>
		<tr class="form-field">
			<th scope="row" valign="top"><label for="description">Description</label></th>
			<td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $category->description?></textarea><br>
			<span class="description">The description is not prominent by default; however, some themes may show it.</span></td>
		</tr>
			</tbody>
</table>
<p class="submit">
	<input name="Update_Category" id="submit" class="button button-primary" value="Update" type="submit"/>
	<input name="id" id="id" value="<?php echo $category->id?>" type="hidden"/>
</p>
</form>
</div>
<script type="text/javascript">
try{document.forms.edittag.name.focus();}catch(e){}
</script>

<div class="clear"></div></div><!-- wpbody-content -->
</div>